<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比较两个数字的大小</title>
</head>
<body>
    <script>
        function bj (z1,z2){
            if(z1>z2){
                alert(z1+"比"+z2+"大");
                document.write(z1+"比"+z2+"大");
            }else if(z2>z1){
                alert(z2+"比"+z1+"大");
                document.write(z2+"比"+z1+"大");
            }else{
                alert(z1+"等于"+z2);
                document.write(z1+"等于"+z2);
            }
        }
        bj(9,10);
    </script>
</body>
</html>